package com.cet.designpatterns.singleton.type1;

class Singleton{

    //1、构造私有化
    private Singleton() {

    }

    //2、类的内部创建对象实例
    private final static Singleton INSTANCE = new Singleton();

    //3、提供一个公有的静态方法，返回实例对象
    public static Singleton getInstance() {
        return INSTANCE;
    }
}
